package com.buba.user.mapper;

import com.buba.pojo.other.DivisionType;
import com.buba.pojo.other.HospitalGuide;
import com.buba.pojo.other.PackageYpe;
import com.buba.pojo.other.SetMeal;
import com.buba.pojo.system.Health;
import com.buba.pojo.system.NewsBulletin;
import com.buba.pojo.user.Campus;
import com.buba.pojo.user.Doctor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.buba.pojo.user.User;
import com.buba.user.pojo.CampusVo;
import com.buba.user.pojo.DivisionVo;
import com.buba.user.pojo.DoctorVo;
import com.buba.user.pojo.MealVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 医生表 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-06-09
 */
@Mapper
public interface DoctorMapper extends BaseMapper<Doctor> {

    List<Doctor> getDoctors(String day);

    List<com.buba.user.pojo.DoctorVo> findDoctorAll();

    List<DivisionVo> findDivisionAll();

    List<Health> findHealthAll();

    List<CampusVo> findCampusAll();

    int addDoctor(Doctor d);
    int addDoctor1(Campus c);
    int addDoctor2(DivisionType dt);

    int updDoctor1(Campus campus);
    int updDoctor2(DivisionType divisionType);
    int updDoctor(com.buba.user.pojo.DoctorVo doctorVo);

    int delDoctor(Doctor doctor);

    List<DoctorVo> mhcAdd(@Param("doctorName") String doctorName, @Param("divisionName") String divisionName);

    int addDivision(DivisionVo divisionVo);
    int addDivision1(DivisionVo divisionVo);
    int addDivision2(DivisionVo divisionVo);


    int updDivision(DivisionVo divisionVo);
    int updDivision1(HospitalGuide hospitalGuide);
    int updDivision2(Campus campus);

    int delDepartment(DivisionType divisionType);
    List<DivisionVo> Depmhc(String campusName, String divisionName);

    int Healthy(Health health);

    int updHealth(Health health);

    int mtkHealth(Health health);

    List<Health> Heamhc(@Param("htitle") String htitle);

    List<MealVo> finMealAll();

    int MealUpd(SetMeal setMeal);

    int MealUpd1(Campus c);

    int MealUpd2(PackageYpe py);



    int delMeal(MealVo mealVo);

    int MealAdd1(Campus campus);

    int MealAdd2(PackageYpe packageYpe);

    int MealAdd(SetMeal setMeal);

    List<PackageYpe> findPackAll();

    int pkAdd(PackageYpe packageYpe);

    int pkUpd(PackageYpe packageYpe);

    int delpk(PackageYpe packageYpe);

    List<PackageYpe> lxmhc(@Param("pkName") String pkName);


    List<MealVo> taomtk(@Param("setMealName")String setMealName);

    List<User> findAdminAll();

    int AddAdmin(User user);

    int UpdAdmin(User user);

    List<User> mhcAdmin(String userName);

    int shanchu(String id);

    List<NewsBulletin> findMessageAll();

    int MessageAdd(NewsBulletin newsBulletin);

    int MessageUpd(NewsBulletin newsBulletin);

    int MessageDel(String id);

    List<NewsBulletin> mhcMessage(String newsTitle);

    List<NewsBulletin> findMessageAlls();

    int MessageAdds(NewsBulletin newsBulletin);

    int MessageUpds(NewsBulletin newsBulletin);

    int MessageDels(String id);

    List<NewsBulletin> mhcMessages(String newsTitle);

    int mimaUpd(Integer id,String password);
}
